/** @format */

const mongoose = require("mongoose");

const docsModel = new mongoose.Schema({
  storeId: {
    type: String,
    require: true,
  },
  title: {
    type: String,
    require: true,
  },
  createTime: {
    type: Date,
    default: Date.now(),
  },
  updataTime: {
    type: Date,
    default: Date.now(),
  },
  readNum: {
    type: Number,
    default: 0,
  },
  content: {
    type: String,
    default: "",
  },
});

module.exports = docsModel;
